package cn.yh.register.hosp.repository;

import cn.yh.register.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

@Repository
public interface ScheduleRepository extends MongoRepository<Schedule,String> {
    Schedule getSchedulesByHoscodeAndHosScheduleId(String Hoscode,String HosScheduleId);

    List<Schedule> findByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date workDate);


    Schedule findByHosScheduleId(String hosScheduleId);
}
